<template>
  <div id="teacher">
    <h1>{{ title }}</h1>
    <p>教师姓名:{{ name }}</p>
    <p>教师年龄:{{ age }}</p>
    <p>薪资:{{ salary }}</p>
  </div>
</template>
<script>
export default {
  name: "TeacherView",
  data() {
    return {
      title: '教师信息展示',
      name: 'jack',
      age: 20,
      salary: 5000
    }
  }
}
</script>


<style scoped>
#teacher {
  width: 200px;
  height: 200px;
  background-color: skyblue;
}
</style>